package com.ruoyi.robot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.robot.mapper.InterfaceSettingMapper;
import com.ruoyi.robot.domain.InterfaceSetting;
import com.ruoyi.robot.service.IInterfaceSettingService;

/**
 * 接口配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-23
 */
@Service
public class InterfaceSettingServiceImpl implements IInterfaceSettingService 
{
    @Autowired
    private InterfaceSettingMapper interfaceSettingMapper;

    /**
     * 查询接口配置
     * 
     * @param interfaceName 接口配置主键
     * @return 接口配置
     */
    @Override
    public InterfaceSetting selectInterfaceSettingByInterfaceName(String interfaceName)
    {
        return interfaceSettingMapper.selectInterfaceSettingByInterfaceName(interfaceName);
    }

    /**
     * 查询接口配置列表
     * 
     * @param interfaceSetting 接口配置
     * @return 接口配置
     */
    @Override
    public List<InterfaceSetting> selectInterfaceSettingList(InterfaceSetting interfaceSetting)
    {
        return interfaceSettingMapper.selectInterfaceSettingList(interfaceSetting);
    }

    /**
     * 新增接口配置
     * 
     * @param interfaceSetting 接口配置
     * @return 结果
     */
    @Override
    public int insertInterfaceSetting(InterfaceSetting interfaceSetting)
    {
        return interfaceSettingMapper.insertInterfaceSetting(interfaceSetting);
    }

    /**
     * 修改接口配置
     * 
     * @param interfaceSetting 接口配置
     * @return 结果
     */
    @Override
    public int updateInterfaceSetting(InterfaceSetting interfaceSetting)
    {
        return interfaceSettingMapper.updateInterfaceSetting(interfaceSetting);
    }

    /**
     * 批量删除接口配置
     * 
     * @param interfaceNames 需要删除的接口配置主键
     * @return 结果
     */
    @Override
    public int deleteInterfaceSettingByInterfaceNames(String[] interfaceNames)
    {
        return interfaceSettingMapper.deleteInterfaceSettingByInterfaceNames(interfaceNames);
    }

    /**
     * 删除接口配置信息
     * 
     * @param interfaceName 接口配置主键
     * @return 结果
     */
    @Override
    public int deleteInterfaceSettingByInterfaceName(String interfaceName)
    {
        return interfaceSettingMapper.deleteInterfaceSettingByInterfaceName(interfaceName);
    }
}
